<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>简化axios</title>
		<script src="../js/axios.js"></script>
	</head>
	<body>
		<script>
		axios.defaults.baseURL="http://localhost:8080/user"
		async function findAll(){
			let {data: user,status:status} = await axios.get("/all")
			console.log(user)
			console.log(status)
		}
		findAll()
		</script>
	</body>
</html>
